package com.kgar.repository;


import com.kgar.entity.graph.node.RecruiterNode;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface RecruiterRepository extends Neo4jRepository<RecruiterNode, Integer> {

    @Query("MATCH (u:Recruiter {recruitId: $recruitId})-[applied:HIRING_FOR]->(j:JobPosition {jobPositionId: $jobId}) DELETE applied")
    void deleteRelationWithRecruiter2Job(Integer recruitId, Long jobId);
}